import request from '@/utils/request'

// 查询房屋管理列表
export function listRoom(query) {
  return request({
    url: '/property/room/list',
    method: 'get',
    params: query
  })
}

// 查询房屋管理详细
export function getRoom(id) {
  return request({
    url: '/property/room/' + id,
    method: 'get'
  })
}

// 新增房屋管理
export function addRoom(data) {
  return request({
    url: '/property/room',
    method: 'post',
    data: data
  })
}

// 修改房屋管理
export function updateRoom(data) {
  return request({
    url: '/property/room',
    method: 'put',
    data: data
  })
}

// 删除房屋管理
export function delRoom(id) {
  return request({
    url: '/property/room/' + id,
    method: 'delete'
  })
}

// 导出房屋管理
export function exportRoom(query) {
  return request({
    url: '/property/room/export',
    method: 'get',
    params: query
  })
}



// 新增楼层数量
export function addLayerNum(data) {
  return request({
    url: '/property/room/addLayerNum',
    method: 'post',
    data: data
  })
}



// 新增房屋数量
export function addRoomNum(data) {
  return request({
    url: '/property/room/addRoomNum',
    method: 'post',
    data: data
  })
}

//统计房间数量信息
export function censusRoomInfo(query) {
  return request({
    url: '/property/room/censusRoomInfo',
    method: 'get',
    params: query
  })
}

export function batchUpdateRoom(data) {
  return request({
    url: '/property/room/batchUpdateRoom',
    method: 'put',
    data: data
  })
}


